﻿<UserControl x:Class="SilverlightApplication.SingleGuages.BiDiamond3"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
 xmlns:db="clr-namespace:Codeplex.Dashboarding;assembly=Codeplex.Dashboarding" 
    Width="299" Height="25">
    <Grid x:Name="LayoutRoot" >
<StackPanel Orientation="Horizontal">
    <TextBlock Text="{Binding CurrentValue}" VerticalAlignment="Center" 
               TextAlignment="Right" Width="40" Foreground="AntiqueWhite"/>
    <db:DiamondSlider Value="{Binding CurrentValue, Mode=TwoWay}" IsBidirectional="True"  />
    <Button Content="Set To 50" Click="Button_Click"/>
</StackPanel>
    </Grid>
</UserControl>